
// Row-major and column-major indexing
// (default: row-major)
#define ROWMAJOR(x,y,w,h) y*w+x
#define COLMAJOR(x,y,w,h) x*h+y

__kernel
void fillColor(
	__global uchar4* pixels,
	uint width,
	uint height,
	uchar4 color)
{
	uint gidx = get_global_id(0);
	uint gidy = get_global_id(1);

	pixels[ROWMAJOR(gidx,gidy,width,height)] = color;
}
